// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router/index.js'
import VueResource from 'vue-resource'
// import VueRouter from 'vue-router'
// import seller from './components/seller/seller.vue'
// import goods from './components/goods/goods.vue'
// import ratings from './components/ratings/ratings.vue'
Vue.config.productionTip = false
// Vue.use(VueRouter)
Vue.use(VueResource)
/* eslint-disable no-new */

// var routerObj = new VueRouter({
//   routes: [
//     { path: '/seller', component: seller },
//     { path: '/goods', component: goods },
//     { path: '/ratings', component: ratings }
//   ]
// })
new Vue({
  el: '#app',
  router: router,
  // render: h => h(App)，
  components: { App },
  template: '<App/>',
  http: {
    root: '/',
    headers: {
      'Access-Control-Allow-Origin': '*'
    }
  }
})
